package com.ruoyi.basedata.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basedata.mapper.RealtimegatherdataXbViewMapper;
import com.ruoyi.basedata.domain.RealtimegatherdataXbView;
import com.ruoyi.basedata.service.IRealtimegatherdataXbViewService;

/**
 * 小表实时数据视图Service业务层处理
 *
 * @author gdqt
 * @date 2024-03-18
 */
@Service
public class RealtimegatherdataXbViewServiceImpl implements IRealtimegatherdataXbViewService {
    @Autowired
    private RealtimegatherdataXbViewMapper realtimegatherdataXbViewMapper;

    /**
     * 查询小表实时数据视图
     *
     * @param tenantId 小表实时数据视图主键
     * @return 小表实时数据视图
     */
    @Override
    public RealtimegatherdataXbView selectRealtimegatherdataXbViewByTenantId(String tenantId) {
        return realtimegatherdataXbViewMapper.selectRealtimegatherdataXbViewByTenantId(tenantId);
    }

    /**
     * 查询小表实时数据视图列表
     *
     * @param realtimegatherdataXbView 小表实时数据视图
     * @return 小表实时数据视图
     */
    @Override
    public List<RealtimegatherdataXbView> selectRealtimegatherdataXbViewList(RealtimegatherdataXbView realtimegatherdataXbView) {
        return realtimegatherdataXbViewMapper.selectRealtimegatherdataXbViewList(realtimegatherdataXbView);
    }

    /**
     * 新增小表实时数据视图
     *
     * @param realtimegatherdataXbView 小表实时数据视图
     * @return 结果
     */
    @Override
    public int insertRealtimegatherdataXbView(RealtimegatherdataXbView realtimegatherdataXbView) {
        return realtimegatherdataXbViewMapper.insertRealtimegatherdataXbView(realtimegatherdataXbView);
    }

    /**
     * 修改小表实时数据视图
     *
     * @param realtimegatherdataXbView 小表实时数据视图
     * @return 结果
     */
    @Override
    public int updateRealtimegatherdataXbView(RealtimegatherdataXbView realtimegatherdataXbView) {
        return realtimegatherdataXbViewMapper.updateRealtimegatherdataXbView(realtimegatherdataXbView);
    }

    /**
     * 批量删除小表实时数据视图
     *
     * @param tenantIds 需要删除的小表实时数据视图主键
     * @return 结果
     */
    @Override
    public int deleteRealtimegatherdataXbViewByTenantIds(String[] tenantIds) {
        return realtimegatherdataXbViewMapper.deleteRealtimegatherdataXbViewByTenantIds(tenantIds);
    }

    /**
     * 删除小表实时数据视图信息
     *
     * @param tenantId 小表实时数据视图主键
     * @return 结果
     */
    @Override
    public int deleteRealtimegatherdataXbViewByTenantId(String tenantId) {
        return realtimegatherdataXbViewMapper.deleteRealtimegatherdataXbViewByTenantId(tenantId);
    }
}
